package com.bkgy.modular.tbdsjc621digitalevaluation.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.tbdsjc621digitalevaluation.service.TbDsjC621DigitalEvaluationService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * 1720产线数字化评价结果表
 *
 * @author 生成器生成
 * @date 2022-08-31 16:56:08
 */
@RestController
@RequestMapping("/tbDsjC621DigitalEvaluation")
public class TbDsjC621DigitalEvaluationController {

    @Resource
    private TbDsjC621DigitalEvaluationService tbDsjC621DigitalEvaluationService;

    /**
     * 分页查看记录
     *
     * @param json 查询条件
     */
    @CrossOrigin
    @RequestMapping(value = {"/findByPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findDataTbDsjC621DigitalEvaluationByPage(@RequestBody JSONObject json) {
        return tbDsjC621DigitalEvaluationService.findDataTbDsjC621DigitalEvaluationByPage(json);
    }


    /**
     * 列表导出功能
     * @param jsonObject
     * @param response
     */
    @PostMapping("/exportXlsx")
    public void export(@RequestBody JSONObject jsonObject, HttpServletResponse response) {
        tbDsjC621DigitalEvaluationService.export(jsonObject,response);
    }
}
